from django.contrib import admin
from account.models import User, UserIdentity, UserAsset, UserBankCard, UserInvest

# Register your models here.
class UserAdmin(admin.ModelAdmin):
    list_display = ('username','email','mobile')

class UserIdentityAdmin(admin.ModelAdmin):
    list_display = ('user','name','id_type','id_number','identity_datetime')

class UserAssetAdmin(admin.ModelAdmin):
    list_display = ('user', 'balance', 'asset', 'profit', 'profit_rate')
    
class UserBankCardAdmin(admin.ModelAdmin):
    list_display = ('user', 'card_number', 'bank_name', 'bank_city', 'bank_branch')

class UserInvestAdmin(admin.ModelAdmin):
    list_display = ('user', 'product', 'capital', 'profit', 'invest_datetime')

admin.site.register(User, UserAdmin)
admin.site.register(UserIdentity, UserIdentityAdmin)
admin.site.register(UserAsset, UserAssetAdmin)
admin.site.register(UserBankCard, UserBankCardAdmin)
admin.site.register(UserInvest,UserInvestAdmin)